window.addEventListener('load',function(){
	var current = document.querySelectorAll('.nav .container .row .col-lg-2');
	var row2 = document.querySelectorAll('.nav .container .row2');
	
	for(var i=0; i<current.length; i++){
		
		current[i].setAttribute('suoYin' , i);
		
		current[i].onclick = function(){
			
			var suoYin = this.getAttribute('suoYin');
			
			for(var j=0; j<current.length; j++){
				current[j].classList.remove('current');
				row2[j].classList.remove('now');
			}
			current[suoYin].classList.add('current');
			row2[suoYin].classList.add('now');
		}
	}
})